<table border="1" cellspacing="0" cellpadding="4" width="100%">
	<tr style="background-color:#536A97;color:#FFFFFF;">
		<th>
				<label>Fact Sheet For:</label>
				<h3><%= @person.full_name %> (#<%= @person.id %>)</h3>
		</th>
	</tr>
		
	<tr>
		<td>
			<div>
				<strong>Household Info</strong> (moved into)
			</div>
			<div>
				<span><%= @person.household.household_name rescue nil %> (#<%= @person.household.id %>)</span><br>
				<span><%= @person.household.address_block %></span><br>
				<span><strong>Household People:</strong> <%= @person.household.people.collect {|p| p.first_name}.to_sentence rescue nil %></span>
			</div>
		</td>
	</tr>
	
	<tr>
		<td>
			<strong>Individual Info</strong>
			<table border="0" cellspacing="0" cellpadding="1" width="100%">
				<tr>
					<td><label>Birthdate:</label></td>
					<td><label>Checkin Group:</label></td>
				</tr>
				<tr>
					<td>
						<%= @person.birthdate.strftime('%m/%d/%Y') rescue nil %>
					</td>
					<td>
						<%= @person.default_group.name rescue nil %>
					</td>
				</tr>
				<tr>
					<td><label>Gender:</label></td>
					<td><label>Household Position:</label></td>
				</tr>
				<tr>
					<td>
						<%= @person.gender rescue nil %>
					</td>
					<td>
						<%= @person.household_position rescue nil %>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	
	<tr>
		<td>
			<div><strong>Phones</strong></div>
			<% @person.phones.each do |p| %>
			<div>
				<%= number_to_phone p.number %>
			</div>
			<% end %>
		</td>
	</tr>
	
	<tr>
		<td>
			<div><strong>Emails</strong></div>
			<% @person.emails.each do |e| %>
			<div>
				<%= e.email %>
			</div>
			<% end %>
		</td>
	</tr>
	
	<tr>
		<td>
				<div><strong>Enrolled In</strong></div>
				<% @person.enrollments.each do |e| %>
				<div>
					<%= e.group.name rescue nil %>
				</div>
				<% end %>
		</td>
	</tr>
	
	<tr>
		<td>
			<div><strong>Involved In</strong></div>
			<% @person.involvements.each do |i| %>
			<div>
				<%= i.job.team.name rescue nil %> (<%= i.job.title rescue nil %>)
			</div>
			<% end %>
		</td>
	</tr>
	
	<tr>
		<td>
			<div><strong># Attendances</strong></div>
			<div>
				<%= @person.attendances.length rescue nil %>
			</div>
		</td>
	</tr>
	
	<tr>
		<td>
			<div><strong><%= link_to "Contacts", :action => 'contacts', :id => @person %></strong></div>
			<% @person.contacts.sort_by(&:created_at).each do |c| %>
			<div><%= c.created_at.strftime('%m/%d/%Y') rescue nil %> <%= c.contact_type.name rescue nil %></div>
			<% end %>
		</td>
	</tr>
	
	<tr>
		<td>
			<div><strong>Tags</strong></div>
			<% @person.taggings.each do |t| %>
			<div>
				<%= t.start_date.strftime('%m/%d/%Y') rescue nil %> <%= t.tag.tag_group.name rescue nil %>: <%= t.tag.name rescue nil %>
			</div>
			<% end %>
		</td>
	</tr>
	
	<tr>
		<td>
			<div><strong># Contributions</strong></div>
			<div>
				<%= @person.contributions.length rescue nil %>
			</div>
		</td>
	</tr>
	<tr>
		<td>
			<div><strong>Relationships</strong></div>
			<% begin @person.all_relationships.each do |r| %>
			<div>
				<%= r.full_sentence %>
			</div>
			<% end %> <% rescue %> <% end %>
		</td>
	</tr>
</table>